/**
 * Copyright (C), 2015-2019, bogewang
 * FileName: RegisterVO
 * Author:   foren236598164@aliyun.com
 * Date:     2019/9/19 13:50
 * Description: 注册VO
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.bogewang.member.controller.req.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * 〈注册VO〉
 *
 * @author foren236598164@aliyun.com
 * @create 2019/9/19
 * @since 1.0.0
 */
@Data
public class RegisterVO {
    /**
     * 手机号码
     */
    @NotBlank(message = "手机号码不能为空")
    @Size(min = 11, max = 11, message = "手机号码长度不正确")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String mobile;
    /**
     * 密码
     */
    @NotNull(message = "密码不能为空!")
    private String password;

    /**
     * 注册码
     */
    @NotNull(message = "注册码不能为空!")
    private String registCode;
    /**
     * 图形验证码
     */
    @NotBlank(message = "图形验证码不能为空!")
    private String graphicCode;
}